import { createRouter, createWebHistory } from 'vue-router'
import CampusMap from '../views/CampusMap.vue'
import ChargeLoca from '../views/ChargeLoca.vue'
import HomePage from "@/views/HomePage.vue";
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes: [
    {
      path: '/homepage',
      name: 'index',
      component: CampusMap
    },
    {
      path: '/charge',
      name: 'charge',
      component: ChargeLoca
    },
    {
      path: '/',
      name: 'home',
      component: HomePage
    }
    // 可以添加其他路由，例如关于我们，管理页面等
  ]
})

export default router